<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/tabs_panels.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:53 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title>鑫源东恒后台管理系统</title>
    <link rel="shortcut icon" href="/public/favicon.ico">
    <link href="__MANAGE__/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__MANAGE__/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__MANAGE__/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__MANAGE__/css/animate.min.css" rel="stylesheet">
    <link href="__MANAGE__/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="__MANAGE__/layui/css/layui.css" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="{if condition="input('tab',1) eq 1"}active{/if}"><a data-toggle="tab" href="#tab-1" aria-expanded="true">站点配置</a>
                        </li>

                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane {if condition="input('tab',1) eq 1"}active{/if}">
                            <div class="panel-body">
                              <form method="post" class="form-horizontal" action="{:url('config/index')}"
                              data-type="ajax">
                                <input type="hidden" name="tab" value="1">
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">网站LOGO</label>
                                      <div class="col-sm-10">
                                          <input name="sitelogo" id="thumbnail" type="hidden"/>
                                          <div class="form-inline" >
                                              <div id="sm" class="face_pic ">
                                                  <img width="36%" class="img-responsive" src="{$site.sitelogo}"/>
                                              </div>
                                              <div class="col-sm-12" style="margin-top: 24px;">
                                                  <button type="button" class="layui-btn imgBtn" id="test1">
                                                      <i class="layui-icon">&#xe67c;</i>上传
                                                  </button>
                                              </div>
                                          </div>
                                      </div>
                                  </div>
                                  <div class="hr-line-dashed"></div>
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">网站名称</label>

                                      <div class="col-sm-10">
                                          <input type="text" name="sitename" class="form-control"
                                                 value="{$site.sitename}">
                                      </div>
                                  </div>
                                  <div class="hr-line-dashed"></div>
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">关键字</label>

                                      <div class="col-sm-10">
                                          <input type="text" name="sitekeywords" class="form-control"
                                                 value="{$site.sitekeywords}">
                                      </div>
                                  </div>
                                  <div class="hr-line-dashed"></div>
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">描述</label>
                                    <div class="col-sm-10">
                                        <textarea name="sitedescription" type="text" rows="8" cols="60" class="form-control">{$site.sitedescription}</textarea>
                                    </div>
                                </div>
                                  <div class="hr-line-dashed"></div>
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">QQ</label>
                                      <div class="col-sm-5">
                                          <input type="text" name="siteQQ" class="form-control" value="{$site.siteQQ}">
                                      </div>
                                     <label class="col-sm-1 control-label">联系电话</label>
                                     <div class="col-sm-4">
                                        <input type="text" name="sitemobile" class="form-control" value="{$site.sitemobile}">
                                    </div>
                                </div>
                                  <div class="hr-line-dashed"></div>
                                  <div class="form-group">
                                      <label class="col-sm-1 control-label">地址</label>
                                      <div class="col-sm-5">
                                          <input type="text" name="siteaddress" class="form-control" value="{$site.siteaddress}">
                                      </div>
                                      <label class="col-sm-1 control-label">邮箱</label>
                                      <div class="col-sm-4">
                                          <input type="text" name="sitemail" class="form-control" value="{$site.sitemail}">
                                      </div>
                                  </div>
                                <div class="hr-line-dashed"></div>
                                
                                <div class="form-group">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-primary" type="submit">提交</button>
                                    </div>
                                </div>
                              </form>
                            </div>
                        </div>

                    </div>


                </div>
            </div>
        </div>
    </div>
    <script src="__MANAGE__/js/jquery.min.js?v=2.1.4"></script>
    <script src="__MANAGE__/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="__MANAGE__/js/content.min.js?v=1.0.0"></script>
    <script src="__MANAGE__/js/plugins/iCheck/icheck.min.js"></script>
    <script>
        $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});
    </script>
    <script src="__MANAGE__/js/plugins/layer/layer.min.js"></script>
    <script src="__MANAGE__/js/layer_alert.js"></script>
    <script src="__MANAGE__/layui/layui.js" charset="utf-8"></script>
    <script>
        $(document).ready(function () {
            // 上传图片
            layui.use('upload', function () {
                var upload = layui.upload;
                //执行实例
                var uploadInst = upload.render({
                    elem: '#test1' //绑定元素
                    , url: "{:url('category/uploadImg')}" //上传接口
                    , done: function (res) {
                        //上传完毕回调
                        $("#thumbnail").val(res.src);
                        $("#sm").html('<img class="img-responsive" src="' + res.src + '" style="width:30%"/>');
                    }
                    , error: function () {
                        alert(1);
                        //请求异常回调
                    }
                });
            });
        });
    </script>
</body>
</html>
